package edu.zut.cs.software.person.supplier.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.person.supplier.dao.SupplierDao;
import edu.zut.cs.software.person.supplier.domain.Supplier;
import edu.zut.cs.software.person.supplier.service.SupplierManager;
import edu.zut.cs.software.teach.Base.service.impl.GenericManagerImpl;
/**
 * @2020.6.1
 * @author Jianghe
 *
 */


@Service("supplierManager")

public class SupplierManagerImpl extends GenericManagerImpl<Long, Supplier>  implements SupplierManager {

	SupplierDao supplierdao;

	@Autowired
	public void setSupplierdao(SupplierDao supplierdao) {
		this.supplierdao = supplierdao;
		this.dao=supplierdao;
	}

	/**
	 * return supplier information
	 */

	@Override
	public  Supplier findById(Long id) {
		// TODO Auto-generated method stub
		return null;
}

	@Override
	public String SupplierInformation(Supplier supplier) {
		// TODO Auto-generated method stub
		String Info;
		Info="供货商："+supplier.getName()+" "+"供货批次：第"+supplier.getNumber()+"次";
		return Info;
				
	}
	

	@Override
	public Supplier echo(Supplier supplier) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public void Add(Supplier supplier) {
		// TODO Auto-generated method stub

	}

	@Override
	public void Delete(Supplier supplier) {
		// TODO Auto-generated method stub

	}

	@Override
	public void Modify(Supplier supplier) {
		// TODO Auto-generated method stub

	}


}
